package org.apache.rocketmq.common;


/**
 * 
 * @author Administrator
 *
 * @param <T1>
 * @param <T2>
 * 
 * 用来封装NettyRequestProcessor与ExecuteService的绑定关系。
 * 在RocketMQ的网络处理模型中，会为每一个NettyRequestProcessor与特定的线程池绑定，
 * 所有该NettyRequestProcessor的处理逻辑都在该线程池中运行。
 * 
 */

public class Pair<T1, T2> {
	// NettyRequestProcessor
    private T1 object1;
    // ExecutorService
    private T2 object2;

    public Pair(T1 object1, T2 object2) {
        this.object1 = object1;
        this.object2 = object2;
    }

    public T1 getObject1() {
        return object1;
    }

    public void setObject1(T1 object1) {
        this.object1 = object1;
    }

    public T2 getObject2() {
        return object2;
    }

    public void setObject2(T2 object2) {
        this.object2 = object2;
    }
}
